package com.murong.ai.chat.domain.text2speech.xfyun;

import javax.sound.sampled.LineEvent;
import javax.sound.sampled.LineListener;

public class ChatLineListener implements LineListener {

    @Override
    public void update(LineEvent event) {
        if (event.getType() == LineEvent.Type.START) {
        } else if (event.getType() == LineEvent.Type.STOP) {
        } else if (event.getType() == LineEvent.Type.OPEN) {
            //microphone.stop();
        } else if (event.getType() == LineEvent.Type.CLOSE) {
           //microphone.start();
        }
    }
}
